from fastapi import APIRouter
from app.api.login import index
from app.api.redis import redis_deppends,my_redis

router = APIRouter(prefix="/v1", tags=["api路由"])


@router.get('/')
async def home():

    return {"message":"Hello World"}

router.get("/index",tags=["api路由"],summary="注册接口")(index)

router.get("/redis",tags=["api路由"],summary="路由注入")(my_redis)
router.get("/redis/depends",tags=["api路由"],summary="依赖注入")(redis_deppends)